﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.BLL;

namespace ZF.WS.UserControls
{
    public partial class expsearch : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitControls();
            }
        }
        private void InitControls()
        {
            var typeList = DictionaryConfig.EExpertType;
            this.lvType.DataSource = typeList;
            this.lvType.DataBind();

  

            var sp = new house.Search();
            this.lvArea.DataSource = sp.City.Select(p => new { Key = p.Name, Text = p.Name }); ;
            this.lvArea.DataBind();
        }
    }
}